package com.spic.business.train.examination.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.spic.business.train.createtest.domain.TrainExam;
import com.spic.business.train.createtest.mapper.TrainExamMapper;
import com.spic.business.train.examination.domain.TrainPaper;

import java.util.List;

/**
 * 试卷Service接口
 *
 * @author qishaoping
 * @date 2021-10-21
 */
public interface ITrainPaperService extends IService<TrainPaper>
{
    /**
     * 查询试卷
     *
     * @param id 试卷主键
     * @return 试卷
     */
    public TrainPaper selectTrainPaperById(Long id);

    /**
     * 查询试卷列表
     *
     * @param trainPaper 试卷
     * @return 试卷集合
     */
    public List<TrainPaper> selectTrainPaperList(TrainPaper trainPaper);

    /**
     * 新增试卷
     *
     * @param trainPaper 试卷
     * @return 结果
     */
    public int insertTrainPaper(TrainPaper trainPaper);

    /**
     * 修改试卷
     *
     * @param trainPaper 试卷
     * @return 结果
     */
    public int updateTrainPaper(TrainPaper trainPaper);

    /**
     * 批量删除试卷
     *
     * @param ids 需要删除的试卷主键集合
     * @return 结果
     */
    public int deleteTrainPaperByIds(Long[] ids);

    /**
     * 删除试卷信息
     *
     * @param id 试卷主键
     * @return 结果
     */
    public int deleteTrainPaperById(Long id);


}
